<?php
	$pageSize = 9;
	$pageNum = 1;
        if (isset($_GET['pageNum'])==true) $pageNum = $_GET['pageNum'];
	$totalRows = 0;
	//echo $idlt; die;
	$sanphammoi = $t->laysanphammoiphantrang($pageNum,$pageSize, $totalRows);
	//echo $totalRows; die;
?>
<div class="m_box">
    <div class="c0">
        <div class="c1">
            <div class="c2">
                <h3 class="title">Hoa tươi mới nhất</h3>
                <div class="list_hoa">
                     <?php while($row_sanphammoi=mysql_fetch_assoc($sanphammoi)) { ?>
                    <div class="item_hoa">
                        <div class="image">
                            <a href="index.php?view=chitietsanpham&id=<?=$row_sanphammoi['id']?>">
                                <img alt="<?=$row_sanphammoi['ten_'.$lang]?>" src="<?=$row_sanphammoi['url_img']?>" />
                            </a>
                        </div>
                        <div class="subject">
                            <span>
                                <a href="index.php?view=chitietsanpham&id=<?=$row_sanphammoi['id']?>"><?=$row_sanphammoi['ten_'.$lang]?></a>
                            </span>
                        </div>
                        <div class="price"><?=number_format($row_sanphammoi['gia'], 0, '.', ',' ); ?></div>
                        <div class="tools">
                            <a href="index.php?view=chitietsanpham&id=<?=$row_sanphammoi['id']?>">Chi tiết</a>
                        </div>
                    </div>
                    <?php } ?>
                    <div class="c"></div>
                </div><!--end .list_hoa-->
                <div class="showpageArea">
                    <?php echo $t->pagesList($totalRows,$pageNum,$pageSize,5); ?>
                </div><!--end .showpageArea-->
            </div><!--end .c2-->
        </div><!--end .c1-->
    </div><!--end .c0-->
</div><!--end .m_box-->